﻿using System.Web.UI;
using System.Web;
using Microsoft.Practices.EnterpriseLibrary.ExceptionHandling;

namespace Artech.PetShop.Common
{
    public class ViewBase<TPresenter> : Page
    {
       protected TPresenter Presenter
        { get; set; }

       protected override void OnError(System.EventArgs e)
       {
           if (ExceptionPolicy.HandleException(HttpContext.Current.Error, "webClientPolicy"))
           {
               base.OnError(e);
           }
       }
    }
}
